package com.second;

import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;

public class IDCard {
	
	private String name;
	private String nation;
	private String sex;
	private String cardNo;
	private LocalDateTime birthday;
	private String addr;
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getNation() {
		return nation;
	}
	public void setNation(String nation) {
		this.nation = nation;
	}
	public String getSex() {
		return sex;
	}
	public void setSex(String sex) {
		this.sex = sex;
	}
	public String getCardNo() {
		return cardNo;
	}
	public void setCardNo(String cardNo) {
		this.cardNo = cardNo;
	}
	public LocalDateTime getBirthday() {
		return birthday;
	}
	public void setBirthday(LocalDateTime birthday) {
		this.birthday = birthday;
	}
	public String getAddr() {
		return addr;
	}
	public void setAddr(String addr) {
		this.addr = addr;
	}
	
	public String toString() {
		DateTimeFormatter asd=DateTimeFormatter.ofPattern("yyyy-MM-ddd HH:mm:ss:SSS");
		String sty=asd.format(birthday);
		StringBuffer az=new StringBuffer();
		az.append(this.name);
		az.append(this.nation);
		az.append(this.sex);
		az.append(sty);
		az.append(this.cardNo);
		az.append(this.addr);
		
		  String str=new String(az);
		  		return str;
		
	}
	
	
}                      
